define(function  (require, exports, module) {
    require("../../../../database/registerData");
    function detailInfoList() {
        var companyDetailInfo = "";
        var companyDetailInfoTwo = "";
        var companyInfoList = Message.companyInfoListTwo;
        for(var i =0;i<companyInfoList.length;i++){
            if( i ==0){ //学校名称
                companyDetailInfo += "<div class='input-cont'>" +
                    "<p class='text text-padding'>" +
                    "<a class='start'>＊</a>" + companyInfoList[i].message+
                    "</p>" +
                    "<input class='entry-info' id="+companyInfoList[i].id+" value=''>" +
                    "<div id="+companyInfoList[i].rightId+" class='warn-info hide'>" +
                    "<p>"+companyInfoList[i].rightInfo+"</p>" +
                    "</div>" +
                    "<div id="+companyInfoList[i].errorId+" class='warn-info hide'>" +
                    "<p>"+companyInfoList[i].errorInfo+"</p>" +
                    "</div>"+"</div>";
            }else { //学校地址
                companyDetailInfoTwo += "<div class='input-cont'>" +"<p class='text text-padding'>" +
                    "<a class='start'>＊</a>" + companyInfoList[i].message+
                    "</p>" +
                    "<input class='entry-info' id="+companyInfoList[i].id+" value=''>" +
                    "<div id="+companyInfoList[i].rightId+" class='warn-info hide'>" +
                    "<p>"+companyInfoList[i].rightInfo+"</p>" +
                    "</div>" +
                    "<div id="+companyInfoList[i].errorId+" class='warn-info hide'>" +
                    "<p>"+companyInfoList[i].errorInfo+"</p>" +
                    "</div>"+"</div>";
            }

        }
        $.template( "infoDetailTemplate", companyDetailInfo );
        $.tmpl("infoDetailTemplate", companyDetailInfo).appendTo("#nameAreaId");

        $.template("infoDetailTwoTemplate",companyDetailInfoTwo);
        $.tmpl("infoDetailTwoTemplate", companyDetailInfoTwo).appendTo("#locationAreaId");

        //学校简介
        var areaInput = "";
        areaInput += "<div class='input-cont input-cont-area'>" +
            "<p class='text text-paddingThree'>学校简介：</p>";

        areaInput += "<textarea id='text-show-area' class='text-area-box' placeholder='学校介绍:10字-100字'></textarea>" +
            "<div id='cue-company-int-area' class='warn-info hide'>" +
            "<p>学校介绍：10-100字</p>" + "</div>" +
            "<div id='cue-company-int-area-error' class='warn-info-error hide'>" +
            "<p>学校介绍：10-100字</p>" + "</div>"+"</div>";;

        $.template( "areaTemplate", areaInput );
        $.tmpl("areaTemplate", areaInput).appendTo("#input-region");

    }
    module.exports = detailInfoList();
})